<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script src="bootstrap/js/jquery-3.1.1.min.js"></script>
<html>
<head>
<meta charset="UTF-8">
<title>都市信息网-查看详细内容</title>
</head>
<body>
	<center>
		<table width="670" border="0" cellspacing="0" cellpadding="0"
			style="margin-top:5">
			<tr height="30">
				<td style="text-indent:5" valign="bottom"><font color="#004790"><b>■查看详细信息</b></font>&nbsp&nbsp&nbsp<input
					type="button" value="审核通过" onclick='set_access()'">&nbsp&nbsp&nbsp<input
					type="button" value="设置收费" onclick='set_charge()'></td>
			</tr>
			<tr height="1">
				<td></td>
			</tr>
			<tr bgcolor="#FAFCF5">
				<td style="border:1 solid"><c:forEach items='${list_charge}'
						var="type_charge" varStatus="vs">
						<table border="0" width="100%" cellspacing="0" cellpadding="2">
							<tr height="40">
								<td width="20%" style="text-indent:20">信息类别：</td>
								<td>${type_intro}</td>
							</tr>
							<tr height="40">
								<td style="text-indent:20">发布时间：</td>
								<td>${type_charge.info_date}</td>
							</tr>
							<tr height="40">
								<td style="text-indent:20">信息标题：</td>
								<td>${type_charge.info_title}</td>
							</tr>
							<tr height="40">
								<td colspan="2" style="text-indent:20">信息内容：</td>
							</tr>
							<tr>
								<td colspan="2" align="center">
									<table border="1" width="630" cellspacing="0" cellpadding="10"
										rules="none" frame="below" style="word-break:break-all"
										bordercolor="lightgrey" bordercolorlight="lightgrey"
										bordercolordark="white">
										<tr height="200" bgcolor="white">
											<td colspan="3" valign="top" style="border:1 solid">${type_charge.info_content}</td>
										</tr>
										<tr height="20" align="center">
											<td>联系电话：${type_charge.info_phone}</td>
											<td>联系人：${type_charge.info_linkman}</td>
											<td>E-mial：${type_charge.info_email}</td>
										</tr>
									</table> </c:forEach>
								</td>
							</tr>
							<tr height="63">
								<td align="center" colspan="2"><a
									href="javascript:window.history.back(-1)">返回</a></td>
							</tr>
						</table></td>
			</tr>
		</table>
		<br>
	</center>
</body>
</html>
<script type="text/javascript">
    /* 设置审核通过 */
	function set_access() {
		var id = '${id}';
		$.ajax(
			{
			    url : 'info/set_access.action?id=' + id,
			    dataType: "text",
			    type: 'post',
				success : function(data) {
					if (data!=null) {
					alert(data);
					}
				},
			});
	}
	
	    /* 设置收费 */
		function set_charge() {
		var id = '${id}';
		$.ajax(
			{
			    url : 'info/set_charge.action?id=' + id,
			    dataType: "text",
			    type: 'post',
				success : function(data) {
					if (data!=null) {
					alert(data);
					}
				},
			});
	}
</script>